require(['swiper','common'],function (Swiper) {
  // 轮播图
  var ticketswiper = new Swiper('.gzl-swiper_fraction', {
    loop: true,
    autoplay: {
      disableOnInteraction: false
    },
    pagination: {
      el: '.swiper-pagination',
      type: 'fraction'
    }
  });
  // 预定须知
  $(".ticket-booking-item .gzl-cell__bd").on("click", function () {
    var title = $(this).find(".ticket-booking-tit").text();
    var price = $(this).parent().find(".ticket-booking-price em").text();
    var content = _.template($("#ticket-detail").html());
    $.popup({
      title: title,
      btn: '立即预订',
      price: price,
      content: content,
      btnEvent: function () {
        window.location.href="../orderBooking/ticketOrderBooking.html";
      }
    });
  });
});